package com.lvmama.java.rhino.spark.core.zookeeper;

/**
 * 自定义Zookeeper事件接口 
 * @author wxliyong
 */
public interface ZNodeListener {
	/**
	 * The existence status of the node has changed.
	 */
	void process(ZNodeEvent event);

	/**
	 * The ZooKeeper session is no longer valid.
	 * @param rc the ZooKeeper reason code
	 */
	void closing(int rc);
}
